<div class="location">
	当前位置：
	<a href="#">首页</a> &gt; 
	<span>会员中心</span>
</div>
    <div class="content">
    	<div class="conRight floatl Box">
        	<?php echo $this->element('index/ucMenu')?>
        </div>
    	<div class="conLeft floatr Box Indtion">
			<div class="infon">
            	<dl>
                	<dt>
                    	<?php 
                		if($user['User']['sys_photo_id']){
                			$pic= $user['SysPhoto']['file_path'];
                		}else{
                			$pic = 'default/tximg2.jpg';
                		}
                		echo $this->Html->image($pic,array('id'=>'target'));
                        echo $this->Html->link('编辑个人信息',citylink('Users','info'))
                		?>
                    </dt>
                    <dd>
                    	<ul>
                        	<li>
                            	<p>账户名： <strong><?php echo $user['User']['username']?></strong></p>
                            </li>
                            <li>
                            	<p>积&nbsp;&nbsp;&nbsp;&nbsp;分： <strong><?php echo $user['User']['credit']?></strong></p>
                            </li>
                            <li>
                            	<p>登录邮箱：<strong><?php echo $user['User']['email']?></strong> <em class="green">已绑定</em></p>
                            </li>
                            <li>
                            	<p>登录手机：<strong><?php echo $user['User']['mobile']?></strong> <em class="orange">未绑定</em></p>
                            </li>
                        </ul>
                        <p class="dlsj" style = 'display:none'>最后登录：2013-08-02 12:12:12</p>
                    </dd>
                </dl>
            </div>		
            <div class="clear"></div>	
            <div class="jyList" style = 'display:none'>
            	<h3>最近交易列表</h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
            	 <thead>
                      <tr>
                        <td width="26%" height="36" style="text-indent:30px;">订单号</td>
                        <td width="26%" height="36" align="center">成功时间</td>
                        <td width="27%" height="36" align="center">订单总金额</td>
                        <td width="21%" height="36" align="center">交易状态</td>
                      </tr>
                  </thead>
                  <tbody class="bgTrHover">
                      <tr>
                        <td style="text-indent:15px;"><a href="#">91245564654</a></td>
                        <td align="center">2014-1-10</td>
                        <td align="center"><span>680.00</span></td>
                        <td align="center"><em class="blue">失败</em></td>
                      </tr>
                      <tr>
                        <td style="text-indent:15px;"><a href="#">91245564654</a></td>
                        <td align="center">2014-1-10</td>
                        <td align="center"><span>680.00</span></td>
                        <td align="center"><em class="green">成功</em></td>
                      </tr>
                     <tr>
                        <td style="text-indent:15px;"><a href="#">91245564654</a></td>
                        <td align="center">2014-1-10</td>
                       <td align="center"><span>680.00</span></td>
                        <td align="center"><em class="green">成功</em></td>
                      </tr>
                      <tr>
                        <td style="text-indent:15px;"><a href="#">91245564654</a></td>
                        <td align="center">2014-1-10</td>
                        <td align="center"><span>680.00</span></td>
                        <td align="center"><em class="green">成功</em></td>
                      </tr>
                      <tr>
                        <td style="text-indent:15px;"><a href="#">91245564654</a></td>
                        <td align="center">2014-1-10</td>
                        <td align="center"><span>680.00</span></td>
                        <td align="center"><em class="green">成功</em></td>
                      </tr>
                  </tbody>
                  <tfoot>
                  	<tr>
                    	<td colspan="4">
                            共14页 到第<input name="" type="text" class="text">页<input name="" type="button" class="btn2" value="确定">
                        </td>
                    </tr>
                  </tfoot>
                </table>
            </div>
            <div class="clear"></div>
			<div class="history" id="tabs">
                  <ul class="hisTop">
                    <li class="tab_selected"><a href="#tabs-1">热门推荐</a></li>
                    <li class=""><a href="#tabs-2">最近浏览历史</a></li>
                  </ul>
                  <div class="hisFoot hot" style="padding:0;display: block;">
                	<ul>
			         	<?php foreach ($hotTicket as $ht):?>
			         	<li class = 'half center'>
			         			<?php 
									if(isset($ht['ListPhoto']['file_path']))
										$pic = $ht['ListPhoto']['file_path'];
									else 
										$pic = 'default/himg_19.jpg';
								?>
				         		<?php $image = $this->Html->image($pic,array(
									'alt'=>$ht['Ticket']['title'],
									'title'=>$ht['Ticket']['title']
								  ));
				         		echo $this->Html->link($image,
				         				TicketView($ht),
				         				array("escape"=>false,'title'=>$ht['Ticket']['title'],'target'=>'_blank')
				         		)
							?>
						    <?php echo $this->Html->link($ht['Ticket']['title'],
										TicketView($ht),
										array("class"=>"mcheng hot_t",'title'=>$ht['Ticket']['title'],'target'=>'_blank')
								  )
							?>
						</li>
						<?php endforeach;?>
			         </ul>
                </div>
                
                  <div class="hisFoot" style="display: none;">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
                        <thead>
                             <tr>
                               <td height="36" align="center">您目前浏览的10条票品信息</td>
                             </tr>
                        </thead>
                        <tbody class="bgTrHover">
                        	<?php 
					    	if($this->Session->check('RecentTicket')){
						    	$recentTicket = $this->Session->read('RecentTicket');
					    	}else{
					    		$recentTicket = array();
					    	}
					    	$recentTicket = array_reverse($recentTicket,true);
					    	$i = 0;
					    	foreach ($recentTicket as $rt): $i++;
					    	if($i>10)break;
					    	?>
					    	<tr>
                              <td>
					    		<?php echo $this->Html->link($rt['Ticket']['title'],
					    					TicketView($rt),
					                        	array('title'=>$rt['Ticket']['title'],'target'=>'_blank')
					                       )
									?>
                              </td>
                            </tr>
					    	<?php endforeach;?>
                        </tbody>
                        <tfoot>
                          <tr>
                              <td>
                              </td>
                          </tr>
                        </tfoot>
                    </table>
                </div>
				<script type="text/javascript">
                <!--
                    $('#tabs').GTab();
                //-->
                </script>
           </div>
        </div>
    </div>	
 <style>
   .hot ul li.half a img{height:175px !important;}
   .hot_t{display: block;
height: 60px;
width: 130px;
overflow: hidden;}
 </style>